#pragma once

template<typename T>
class KdTree
{
	enum Dim
	{
		Leaf=0,
		X=1,
		Y=2,
		Z=3,
	};
public:
	KdTree(void):Dim(Leaf),left(0),right(0)
	{

	}
	~KdTree(void)
	{

	}
	Dim dim;
	KdTree<T> *left,*right;
	T value;
};
